package com.itdachang.design.behavioral.observer;

/**
 * 观察者模式（Observer Patter）
 * @author gcq
 * @Create 2022-02-14
 */
public class MainTest {
    public static void main(String[] args) {
        MMTikToker lei = new MMTikToker();

        lei.startCell();

        RobotFans robotFans1 = new RobotFans();
        RobotFans robotFans2 = new RobotFans();
        RobotFans robotFans3 = new RobotFans();
        lei.addFans(robotFans1);
        lei.addFans(robotFans2);
        lei.addFans(robotFans3);

        HumanFans humanFans = new HumanFans();
        lei.addFans(humanFans);

        System.out.println("===>");

        lei.endSell();
    }
}